package com.engine4cloud.tdf.supervision.dto.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 字典-响应对象
 *
 * @author wenjie
 * @date 2024-02-29 10:42:47
 */
@Data
@Schema(description = "字典-请求对象")
@NoArgsConstructor
@AllArgsConstructor
public class DictCodeListQueryDTO implements Serializable {

    /**
     * 编码
     */
    @Schema(description = "编码", example = "01, 02")
    @NotEmpty(message = "编码不能为空")
    private List<String> codeList;

    /**
     * 关键字，如：表名：DCT_COUNTRY,keywords：COUNTRY）
     */
    @Schema(description = "关键字，必须大写", example = "COUNTRY")
    @NotBlank(message = "关键字")
    private String keywords;

}